package com.item.client.impl;

import com.item.client.CityClient;
import com.item.pojo.City;
import org.springframework.stereotype.Component;
import org.springframework.web.method.ControllerAdviceBean;

import java.util.ArrayList;
import java.util.List;

@Component
public class CityClientImpl implements CityClient {

    @Override
    public List<City> findCity() {
        List<City> cityList = new ArrayList<>();
        cityList.add(new City(500, "服务器异常"));
        return cityList;
    }
}
